package com.tjresearch.api.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.tjresearch.api.pojo.UserInfo;
import com.tjresearch.api.service.UserService;

@RestController
public class DubboController {
	@Autowired
	private UserService userService;
	@RequestMapping("/test")
	public UserInfo test(){
		UserInfo user = userService.getUser(1L);
		return user;
	}

}
